﻿<Window x:Class="Microsoft.Research.ScientificWorkflow.ManagementStudio.ManagementStudioWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Management Studio" Width="1000" Height="700" MinHeight="600" MinWidth="600" WindowState="Maximized"  AutomationProperties.AutomationId="ManagementStudio"
        Icon="/Microsoft.Research.ScientificWorkflow.TridentUtilities;component/Images/ManagementStudio/MgmtStudioIcon.png"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" 
        xmlns:Controls="clr-namespace:Microsoft.Research.ScientificWorkflow.ManagementStudioControls.Common;assembly=Microsoft.Research.ManagementStudioControls">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="70"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="25"/>
        </Grid.RowDefinitions>
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,0.665" StartPoint="0.5,0">
                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                <GradientStop Color="#FFF3F3F3" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>
        <Grid HorizontalAlignment="Stretch">
            <Grid.Background>
                <LinearGradientBrush EndPoint="0.983,0.513" StartPoint="0.009,0.513">
                    <GradientStop Color="#FF81C5DE" Offset="0"/>
                    <GradientStop Color="#FF1999CA" Offset="1"/>
                    <GradientStop Color="#FFB5E0F0" Offset="0.304"/>
                </LinearGradientBrush>
            </Grid.Background>
            <Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,-14.959,237.227,0" VerticalAlignment="Top" Width="99.546" Height="50.079" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,-7.241,109.278,0" Width="43.546" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z" VerticalAlignment="Top" Height="29.956">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,24.771,202.278,35.273" Width="38.546" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path Fill="#26FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,14.041,42.278,25.88" Width="99.546" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z" d:LayoutOverrides="Width">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,-2.494,-16.721,0" Width="78.216" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z" VerticalAlignment="Top" Height="39.349" d:IsHidden="True">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,10.847,315.279,39.804" Width="53.216" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,8.759,150.278,0" Width="43.546" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z" VerticalAlignment="Top" Height="29.956">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <TabControl HorizontalAlignment="Stretch" Margin="0,2,0,0" Width="Auto" IsSynchronizedWithCurrentItem="True" BorderThickness="0,0,0,0" AutomationProperties.AutomationId="MainTab">
                <TabControl.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFF2F2F2" Offset="0"/>
                        <GradientStop Color="#FFD6D6D6" Offset="1"/>
                        <GradientStop Color="#FFE6E6E6" Offset="0.835"/>
                    </LinearGradientBrush>
                </TabControl.Background>
                <TabItem Style="{DynamicResource TabItemStyle1}" Header="Connection" Foreground="#FF000000" AutomationProperties.AutomationId="connectionTab">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="75"/>
                        </Grid.ColumnDefinitions>
                        <StackPanel HorizontalAlignment="Stretch" Orientation="Horizontal" ClipToBounds="False" Grid.ColumnSpan="2">
                            <Button ToolTip="Open Saved Connections" Style="{DynamicResource advConnectionButton}" Click="OnSavedConnectionClick" Margin="10,0,0,0" AutomationProperties.AutomationId="savedConnectionButton"/>
                            <Button ToolTip="Connection Settings" Style="{DynamicResource savedConnectionButton}" Click="OnAdvancedConnectionClick"  Margin="10,0,10,0" Height="Auto" AutomationProperties.AutomationId="advancedConnectionButton"/>
                        </StackPanel>
                    </Grid>
                </TabItem>
                <TabItem Style="{DynamicResource TabItemStyle1}" Header="Settings" Foreground="#FF000000" AutomationProperties.AutomationId="settingTab">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="75"/>
                        </Grid.ColumnDefinitions>
                        <StackPanel HorizontalAlignment="Stretch" Orientation="Horizontal" ClipToBounds="False" Grid.ColumnSpan="2">
                            <Button x:Name ="btnGlobalSettings" ToolTip="Open Global Settings" Style="{DynamicResource globalSettingButton}"  Click="OnGlobalSettingsClick" AutomationProperties.AutomationId="globalSettingButton" />
                            <Button x:Name ="btnSystemPolicies" ToolTip="Open System Policies" Style="{DynamicResource systemPolicyButton}" Click="OnSystemPolicyClick" AutomationProperties.AutomationId="systemPolicyButton" />
                        </StackPanel>
                    </Grid>
                </TabItem>
                <TabItem Header="Help" Style="{DynamicResource TabItemStyle1}" AutomationProperties.AutomationId="helpTab">
                    <Grid>
                        <StackPanel HorizontalAlignment="Stretch" Orientation="Horizontal" ClipToBounds="False">
                            <Button Style="{DynamicResource AboutTridentButton}" Click="AboutButton_Click" Content="Button" Margin="10,0,0,0" AutomationProperties.AutomationId="AboutButton"/>
                        </StackPanel>
                    </Grid>
                </TabItem>
            </TabControl>
        </Grid>
        <Grid HorizontalAlignment="Stretch" Grid.Column="0" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.255*" MaxWidth="400" MinWidth="150"/>
                <ColumnDefinition Width="0.745*"/>
            </Grid.ColumnDefinitions>
            <Border Margin="5,5,0,5" VerticalAlignment="Stretch" Height="Auto" BorderThickness="1,1,1,1" CornerRadius="5,5,5,5" BorderBrush="{x:Null}">
                <Grid x:Name="leftPaneHost">
                   
                </Grid>
            </Border>
            <Grid x:Name="workflowManagerTablehost" HorizontalAlignment="Stretch" Margin="7,5,5,5" VerticalAlignment="Stretch" Grid.Column="1">
                
            </Grid>
            <GridSplitter HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="7" Height="Auto" Grid.Column="1" BorderThickness="1,0,1,0" Style="{DynamicResource GridSplitterStyle1}">
                <GridSplitter.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#00FFFFFF" Offset="0"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                        <GradientStop Color="#FFE7E7E7" Offset="0.513"/>
                    </LinearGradientBrush>
                </GridSplitter.Background>
                <GridSplitter.BorderBrush>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFFFFFFF" Offset="0.54"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                        <GradientStop Color="#00FFFFFF" Offset="0"/>
                    </LinearGradientBrush>
                </GridSplitter.BorderBrush>
            </GridSplitter>
        </Grid>
        
        <Border HorizontalAlignment="Stretch" Margin="5,0,5,2" Grid.Row="2" CornerRadius="5,5,5,5" BorderThickness="1,1,1,1" BorderBrush="#FFD2D2D2" RenderTransformOrigin="0.5,1" VerticalAlignment="Stretch" Height="Auto" Grid.RowSpan="1" SnapsToDevicePixels="False">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFFBFBFB" Offset="0"/>
                    <GradientStop Color="#FFEAEAEA" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
            <Border.LayoutTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="0"/>
                    <TranslateTransform X="0" Y="-30"/>
                </TransformGroup>
            </Border.LayoutTransform>
            <Border.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="0"/>
                    <TranslateTransform X="0" Y="0"/>
                </TransformGroup>
            </Border.RenderTransform>
            <Controls:StatusMessageControl x:Name="StatusControl" Margin="10,2,0,0"></Controls:StatusMessageControl>
        </Border>
    </Grid>
</Window>
